package com.imooc.pan.server.modules.file.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.pan.server.modules.file.context.FileChunkMergeAndSaveContext;
import com.imooc.pan.server.modules.file.context.FileSaveContext;
import com.imooc.pan.server.modules.file.context.QueryRealFileListContext;
import com.imooc.pan.server.modules.file.entity.RPanFile;

import java.util.List;

/**
* @author 86156
* @description 针对表【r_pan_file(物理文件信息表)】的数据库操作Service
* @createDate 2025-04-03 17:03:23
*/
public interface RPanFileService extends IService<RPanFile> {
    List<RPanFile> getFileList(QueryRealFileListContext context);

    void saveFile(FileSaveContext fileSaveContext);

    /**
     * 合并文件分片
     * @param fileChunkMergeAndSaveContext
     */
    void mergeFileChunkAndSaveFile(FileChunkMergeAndSaveContext fileChunkMergeAndSaveContext);
}
